package cn.itsource.controller;

import cn.itsource.basic.domain.AjaxResult;
import cn.itsource.service.IShopTypeService;
import cn.itsource.domain.ShopType;
import cn.itsource.query.ShopTypeQuery;
import com.baomidou.mybatisplus.plugins.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @desc
 * @author bobo
 * @since 2022-12-18
 */
@RestController
@RequestMapping("/shopType")
public class ShopTypeController {

    @Autowired
    public IShopTypeService shopTypeService;



    /**
    * 查看所有对象数据（不分页）
    */
    @GetMapping(value = "/list")
    public AjaxResult list(){
        return AjaxResult.success(shopTypeService.selectList(null));
    }

}